package com.it.ymcc.controller;

import com.it.ymcc.entity.JSONResult;
import com.it.ymcc.entity.UserDto;
import com.it.ymcc.service.ILoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@RequestMapping("/login")
@RestController
public class LoginController {
    @Autowired
    private ILoginService loginService;
    @PostMapping("/loging")
    public String loging(@RequestBody UserDto userDto){
        return loginService.loging(userDto);
    }
}
